<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>领导退回意见填写</title>
	<%@include file="../include/contentheader.jsp"%>
    <link rel="stylesheet" type="text/css" href="css/main.css" />
	 <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
	  <script>
	  function doOk(){
		  var value = document.getElementById("result").value;;
			if(value != undefined){
				window.returnValue = value;
			}else{
				window.returnValue = '';
			}
			window.close();
		}
		function doCancel(){
			window.returnValue = '';
			window.close();
		}
		$(function(){
			 var url=location.search;
		     var Request = new Object();
		    if(url.indexOf("?")!=-1)
		        {   var str = url.substr(1)  //去掉?号
		            strs = str.toLowerCase();
		            strs = strs.split("&");
		             for(var i=0;i<strs.length;i++)
		              {
		                  Request[strs[i].split("=")[0]]=unescape(strs[i].split("=")[1]);
		               } 
			     }
		       var value = Request["param"];
			   if(value=='0'){document.getElementById("result").value='同意';}
			   if(value=='1'){document.getElementById("result").value='不同意';}
			});
   </script>
 </head>       
 <body>
   <div class="headerTitle">请输入审批原因</div>
	<div style="margin-top: 20px;">
				<input type="button" onclick="doOk();" value="确定" />&nbsp;&nbsp;&nbsp;&nbsp;
				<input type="button" onclick="doCancel();" value="取消" />
			</div>
	<form name="" method="post" action="">
         <textarea rows="10" cols="20" id="result"></textarea>
    </form>
  </body>
</html>
